package com.design.mode.obsever;

public class TestObserverDemo {
	public static void main(String args[]) {
		BeingWatched observed = new BeingWatched();
		Watcher observing = new Watcher();// 监听器
		observed.addObserver(observing);//被监听
		observed.counter(10);
	}
}
